package com.zhuangxiaoyan.jvm.chapter01;
/**
 * @description 成员变量〈非静态的）的赋值过程: 默认初始化-显式初始化:代码块中初始化-构造器中初始化:有了对象之后，方式对成员变量进行赋值。
  * @param: null
 * @date: 2021/12/4 11:06
 * @return:
 * @author: xjl
*/
public class StackStruTest {
    public static void main(String[] args) {

        Integer x = 5;
        int y = 5;
        System.out.println(x == y);

        Integer i1 = 10;
        Integer i2 = 10;

        System.out.println(i1 == i2);

        Integer i3 = 128;
        Integer i4 = 128;

        System.out.println(i3==i4);

        System.out.println(System.identityHashCode(i3));
        System.out.println(System.identityHashCode(i4));


        String str=new String("hello ")+new String("word");
        String str2=new String("hell word");

        System.out.println(str==str2);
    }
}
